<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="ko">
<head>
	<%@ include file="/include/header.jsp" %>
	<link rel="stylesheet" href="<%=cp %>/mobile/skin/board/notice/style.css">
	<%@ include file="/include/commonRes.jsp" %>
	<link rel="stylesheet" href="<%=cp %>/css/board.css">
	<script type="text/javascript">
		$(function(){
			$("#btn_update").click(function(){$("#editFrm").submit();});
			$("#empout").click(function(){$("#outFrm").submit();});
		});
	</script>
</head>
<body>
	<%@include file="/include/mainMenuHeader.jsp" %>
	<div id="wrapper">
    	<div id="container">
			<script src="<%=cp%>/js/viewimageresize.js"></script>
			<form>
			
			</form>
			<!--  <div id="bo_v_table">&nbsp;</div>-->
			
			<article id="bo_v" style="width:100%">
			    <header>
			        <h2>직원정보</h2>
			    </header>
			
			    <section>&nbsp;</section>
			    
			    <div class="tbl_head01 tbl_wrap">
			        <div class="org_li_table_view">
						<section>&nbsp;</section>
						
						<ul>
							<li class="title first">이 름</li>
							<li class="first view">
								${member.mb_name }
							</li>
						</ul>
						<ul>
							<li class="title">부 서</li>
							<li class="view">
								<c:if test="${empty member.mb_dept_name }">
									-
								</c:if>
								${member.mb_dept_name }
							</li>
						</ul>
						<ul>
							<li class="title">팀</li>
							<li class="view">
								<c:if test="${empty member.mb_team_name }">
									-
								</c:if>
								${member.mb_team_name }
							</li>
						</ul>
						
						<ul>
							<li class="title">직 책</li>
							<li class="view">
								${member.mb_auth_name }
							</li>
						</ul>
						
						<ul>
							<li class="title">아이디<br/></li>
							<li class="view">
								${member.mb_id}
							</li>
						</ul>
						
						<ul>
							<li class="title end">연락처</li>
							<li class="end view">
								<c:if test="${empty member.mb_hp }">
									-
								</c:if>
								${member.mb_hp }
							</li>
						</ul>
					</div>
				</div>
				<section>&nbsp;</section>
			    <div id="bo_v_bot">
			        <!-- 링크 버튼 -->
                    <!-- 
                    <ul class="bo_v_nb">
                        <li>
                        	<a href="./board.php?bo_table=notice&amp;wr_id=11" class="btn_b01">다음글</a>
                        </li>        
                    </ul> 
                    -->
			        <ul class="bo_v_com">
			        	<c:if test="${sessionScope.ss_mb.mb_id ==member.mb_id ||sessionScope.ss_mb.mb_auth_level>=5}">
			        		<li>
				            	<a href="#" class="btn_b01" id="btn_update">수정</a>
			            	</li> 
			        	</c:if>
			        	
			        	<c:if test="${sessionScope.ss_mb.mb_auth_level>=5}">
			        		<li>
		            		<a href="#" class="btn_b01" id="empout">
		            			퇴사
		            		</a>
		            	</li>
			        	</c:if>
		            	                        
		            	<li>
		            		<a href="<%=cp %>/org/org_list.do" class="btn_b01" id="btn_list">목록</a>
		            	</li>
			        </ul>
		    	</div>
		    	<form id="editFrm" action="<%=cp %>/org/org_edit.do" method="get">
		    		<input type="hidden" name="mb_id" value="${member.mb_id }">
		    	</form>
		    	<form id="outFrm" action="<%=cp %>/org/emp_out.do" method="post">
		    		<input type="hidden" name="mb_id" value="${member.mb_id }">
		    	</form>
			</article>
		</div>
	</div>
	<%@ include file="/include/footer.jsp" %>
</body>
</html>